<template>
  <div>
    <h1>用户中心</h1>
    <p>当前用户Id: {{ $route.params.id }}</p>
  </div>
</template>

<script lang="ts" setup>
const route = useRoute();
console.log("route.params", route.params.id);
</script>
